<div class="header">
	<back-Btn></back-Btn>
	增值税抵扣
</div>
<div class="container finance">
	<div class="list f_sk">
		<div class="list-item icon_more required" ng-click="chooseinfo()">
			<div class="item-label">工程合同</div>
			<div class="flow-content">{{param.projectName}}</div>
		</div>
		<div class="list-item icon_more" ng-click="chooseCommonContact()">
			<div class="item-label">通用合同</div>
			<div class="flow-content">{{param.commonContractName}}</div>
		</div>
		<div class="list-item required">
			<div class="item-label">抵扣金额</div>
			<div class="flow-content">
				<input type="text" tel-directive ng-model="param.deductionAmount" />
			</div>
		</div>
        <div class="list-item list-item-textarea">
            <div class="item-label">备注</div>
            <div class="flow-content">
                <textarea cols="30" rows="10" ng-model="param.remark" placeholder="备注内容字数不能大于500"></textarea>
            </div>
        </div>
        <div class="list-item required icon_more" ng-click="chooseInvoice()">
            <div class="item-label">添加成本发票</div>
            <div class="flow-content"></div>
        </div>
        <div class="list table-list">
			<div class="info-title" ng-show="param.details.length">成本发票</div>
			<div class="table-item" ng-repeat="item in param.details">
				<div class="content" ng-class="{cur:$index==index}" ng-click="resetlist()" ng-swipe-left="swipe($index)" ng-swipe-right="swipe(-1)">
					<div class="list-item">
						<div class="item-label">编号</div>
						<div class="flow-content">{{item.invoiceNo}}</div>
					</div>
					<div class="list-item">
						<div class="item-label">销售方名称</div>
						<div class="flow-content">{{item.sellerName}}</div>
					</div>
					<div class="list-item">
						<div class="item-label">开票日期</div>
						<div class="flow-content">{{item.openDate}}</div>
					</div>
					<div class="list-item">
						<div class="item-label">税率</div>
						<div class="flow-content">{{item.rate}}</div>
					</div>
					<div class="list-item">
						<div class="item-label">发票金额</div>
						<div class="flow-content">{{item.invoiceAmount}}</div>
					</div>
					<div class="list-item">
						<div class="item-label">缴税金额</div>
						<div class="flow-content">{{item.taxAmount}}</div>
					</div>
				</div>
				<div class="delete_icon icon_del" ng-click="deletedItem($index)"></div>
			</div>
		</div>
        <!-- 自定义字段 -->
        <div user-defined  param="param"  field-map="param.fieldMap" validation="validation" uid="param.uid" processid="param.processInstanceId"></div>
        <!-- 附件 -->
        <div class="file-upload" file-upload file-data="param.attachment">
        </div>
        <!-- 审查日志 -->
        <div log-list status="processStatus" taskid="process_id"></div>
    </div>
</div>
<!-- 删除流程 -->
<div delete-flow uid="param.uid" id="{{param.processInstanceId}}" submit="submit" validate="validate"></div>
